package com.yztc.hrmgr.mapper;

import com.yztc.hrmgr.utils.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import com.yztc.hrmgr.pojo.Dept;
import org.springframework.stereotype.Repository;

@Repository("deptMapper")
public interface DeptMapper {
    int insert(@Param("pojo") Dept pojo);

    int insertSelective(@Param("pojo") Dept pojo);

    int insertList(@Param("pojos") List<Dept> pojo);

    int update(@Param("pojo") Dept pojo);

    List<Dept> findAll();

    List<Dept> findByPage(@Param("page") Page<Dept> page);

    Integer count();

    Dept findBydeptName(@Param("deptName")String deptName);

    Dept findByDeptId(@Param("deptId")Integer deptId);

    int deleteByDeptId(@Param("deptId")Integer deptId);


}
